import request from '@/router/axios';
import { baseUrl } from '@/config/env';

export const readSystemEmailByPage = (param) => request({
    url: baseUrl + '/email/read/page',
    method: 'post',
    data:param
});

export const addSystemEmail = (data) => request({
    url: baseUrl + '/email/save',
    method: 'post',
    data:data
})

export const editSystemEmail = (data) => request({
    url: baseUrl + '/email/save',
    method: 'post',
    data:data
})

export const delSystemEmail = (id) => request({
    url: baseUrl + '/email/delete',
    method: 'post',
    data: { id: id }
})
